import com.ailk.kbi.kbirazor.control.KbrControl;
import com.ailk.kbi.kbirazor.model.KbrModel;

import flash.events.MouseEvent;

import mx.controls.Alert;
import mx.controls.TextInput;
import mx.events.AdvancedDataGridEvent;
import mx.events.AdvancedDataGridEventReason;
import mx.events.CloseEvent;
import mx.events.FlexEvent;
import mx.managers.PopUpManager;
import mx.utils.StringUtil;

[Bindable]
private var kbrModel:KbrModel = KbrModel.getInstance();
private var kbrControl:KbrControl = new KbrControl();

protected function titlewindow2_closeHandler(event:CloseEvent):void
{
	kbrModel.descTitleWindowFlag = false;
	PopUpManager.removePopUp(this);	
	
}

protected function init(event:FlexEvent):void
{
	kbrControl.getDescDataXML(kbrModel.descCondition);
}

protected function button1_clickHandler(event:MouseEvent):void
{
	kbrModel.descCondition = tiKpiName.text;
	kbrControl.getDescDataXML(kbrModel.descCondition);
	
}
